package com.lizhi.yun.db.dao;/**
 * @program: spring-boot
 * @name UppMenuDao
 * @description:
 * @author: lizhi
 * @create: 2020-04-11 18:37
 */

import com.lizhi.yun.db.pojo.UppMenuPOJO;
import com.lizhi.mybatis.interceptor.PageBounds;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 *@program: spring-boot
 *@name UppMenuDao
 *@description:
 *@author: lizhi
 *@create: 2020-04-11 18:37
 */
@Mapper
public interface UppMenuDao {

    public int insertRecord(UppMenuPOJO record);//添加一条完整记录

    public int deleteById(String menuId);//通过Id(主键)删除一条记录

    public int deleteByList(List<String> listStr);// 批量删除

    public int updateByIdSelective(UppMenuPOJO record);//按Id(主键)修改指定列的值

    public int updateById(UppMenuPOJO record);//按Id(主键)修改所有列的值

    public UppMenuPOJO selectById(String menuId);//通过Id(主键)查询一条记录

    public List<UppMenuPOJO> selectAll(UppMenuPOJO record, PageBounds pageBounds);//根据条件查询

    public List<UppMenuPOJO> selectByMap(Map<String, Object> paramMap, PageBounds pageBounds);//根据条件查询

    public Integer selectMaxLevelByMap(Map<String, Object> paramMap); //查询出该条件下最小等级

    public List<UppMenuPOJO> findAll();

    public Integer countByParentMenuId(String menuId);

}
